# 简单移除@Slf4j注解的脚本

$javaFiles = Get-ChildItem -Path "src\main\java" -Filter "*.java" -Recurse

foreach ($file in $javaFiles) {
    $content = Get-Content $file.FullName -Raw -Encoding UTF8
    
    if ($content -match '@Slf4j') {
        Write-Host "Processing: $($file.Name)"
        $content = $content -replace '@Slf4j\s*\r?\n', ''
        $content | Set-Content $file.FullName -Encoding UTF8
    }
}

Write-Host "Done!"